﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Transcend.Archive.CSScan.Store.Contract;
namespace Transcend.Archive.CSScan.Store.Contract
{

    /// <summary>
    /// Oracle存储实例描述符
    /// </summary>
    public class FTPStoreDescript : DbDescript
    {

        public FTPStoreDescript()
        {
            User = "anonymous";
            Password = string.Empty;
        }
        /// <summary>
        /// 服务器
        /// </summary>
        public string ServerAddr { get; set; }
        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string User { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 字符集：建议Gb2312
        /// </summary>
        public string Encoding { get; set; }
        /// <summary>
        /// 数据库连接串
        /// </summary>
        public string ConnectionString { get; set; }
        /// <summary>
        /// 数据库提供程序
        /// </summary>
        public string Provider { get; set; }
        /// <summary>
        /// 存储路径宏(如{ds1.单位代码}/{ds1.表名（5号文中对应表）}/{ds1.年度}/{ds1.档案分类（最多到2级）}/{ds1.档案号})
        /// ds1表示DataSource中的一个项，ds1表示字典的key,单位代码表示这个数据源查询结果的字段值
        /// </summary>
        public string SavePathMacro { get; set; }

        /// <summary>
        /// 查询数据源
        /// 数据源中的Sql支持 ScanImage类型中的字段值,表达为{image.ImageNo},{image.InstanceId}
        /// 
        /// </summary>
        public Dictionary<string, string> DataSources { get; set; }
    }
}
